﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace MysqlTest
{
    class OrdersContext:DbContext
    {
        public DbSet<Order> orders { get; set; }
        public DbSet<OrderDetail> items { get; set; }

        public OrdersContext(DbContextOptions<OrdersContext> options):base(options)
        {
            this.Database.EnsureCreated();
        }
    }
}
